package com.zhku.conf;

import cn.hutool.extra.qrcode.QrConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.awt.*;

/**
 * @BelongsProject: SpringBoot_School_Work
 * @BelongsPackage: com.zhku.conf
 * @Author: "deweyMDH"
 * @CreateTime: 2023-04-06  10:11
 * @Version: 1.0
 */
@Configuration
public class QRCode {

    // 返回一个qrConfig，用来设置里面的一些信息
    @Bean
    public QrConfig qrConfig() {
        QrConfig qrConfig = new QrConfig();

        qrConfig.setForeColor(Color.black.getRGB());
        return qrConfig;
    }
}
